package com.zkw.demo.controller;

import com.zkw.demo.service.Service1;
import com.zkw.demo.service.impl.Service1Impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2016/4/6.
 */
@RestController
public class ServiceController {
    @Autowired
    Service1 service1;
    @RequestMapping("/service1")
    public String hello(){
        service1.display();
        return "service1 hello";
    }
}
